package com.tanguy.user.ui.me.activity.notice

import com.tanguy.user.base.TabLayoutActivity
import com.tanguy.user.ui.me.adapter.AnnouncementAdapter
import com.tanguy.user.ui.me.adapter.MessageAdapter

/**
 * 通知
 */

class NoticeActivity : TabLayoutActivity() {
    override fun getTabString(): ArrayList<String> = arrayListOf("平台公告","系统消息")
    val announcementAdapter = AnnouncementAdapter(arrayListOf(1, 2, 3))
    val messageAdapter = MessageAdapter(arrayListOf(1, 2, 3, 4))
    override fun onTabItemSelected(position: Int) {
        when (position) {
            0 -> {
                mRvContent.adapter = announcementAdapter
            }
            1 -> {
                mRvContent.adapter = messageAdapter
            }
        }
    }
}
